import request from '@/utils/request'

// 查询部门列表
export function listCategory(query) {
  return request({
    url: '/flow/flow/category/listCategoryTree',
    method: 'get',
    params: query
  })
}

// 查询流程分类详细
export function getCategory(id) {
  return request({
    url: '/flow/flow/category/' + id,
    method: 'get'
  })
}

// 查询部门列表（排除节点）
export function listCateExcludeChild(id) {
  return request({
    url: '/system/dept/list/exclude/' + deptId,
    method: 'get'
  })
}
